package com.bite.user.api.pojo;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoRegisterRequest {
    @NotBlank(message = "用户名不能为空")
    @Length(max = 20, message = "用户名长度不能超过20")
    String userName;

    @NotBlank(message = "密码不能为空")
    @Length(max = 20, min = 6, message = "密码长度必须为6~20")
    String password;

    @Length(max = 64, message = "github长度不能超过64")
    String githubUrl;

    @NotBlank(message = "邮箱不能为空")
    String email;
}
